class MyRunnable implements Runnable{
    @Override
    public void run() {
        System.out.println("hello word");
    }
}
public class Demo1 {
    public static void main(String[] args){
        Runnable runnable=new MyRunnable();
        Thread thread=new Thread(runnable);
        thread.start();
        System.out.println("hello main");


    }
}
